package com.qf.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsBrand;
import com.qf.vo.DtsBrandVo;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 品牌商表 Mapper 接口
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
public interface DtsBrandMapper extends BaseMapper<DtsBrand> {

    @Select("SELECT * FROM  dts_brand b  LEFT JOIN dts_category" +
            " c ON c.id =b.default_category_id ")
    public IPage<DtsBrandVo> selectPage(IPage<DtsBrandVo> page1 , QueryWrapper queryWrapper);
}
